package org.bluedream.core.module.entity.clsItem;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.bluedream.comm.base.OrgTreeEntity;
import org.bluedream.comm.utils.excel.ExcelType;
import org.bluedream.comm.utils.excel.FieldType;


/**
 * @ClassName ClsItem
 * @Description TODO
 * @Author foxsand
 * @Data 2021/4/23 10:49
 * @Version
 */
@Data
@ToString(callSuper = true)
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(value = "tClsItem")
public class ClsItem extends OrgTreeEntity<ClsItem> {
    private static final long serialVersionUID = 1L;

    @TableField(value = "code")
    @NonNull
    @FieldType(excelType = ExcelType.ALL , isRequired = true , excelFieldName = "品类代码" , fieldSort = 1)
    private String treeCode;

    @TableField(value = "tree_name")
    @NonNull
    @FieldType(excelType = ExcelType.ALL , isRequired = true , excelFieldName = "品类名称" , fieldSort = 2)
    private String treeName;


    public ClsItem(String id) {
        this.id = id;
    }
}
